package com.coolwen.mybatis.dao;

import com.coolwen.mybatis.model.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @author CoolWen
 * @version 2020-04-09 10:08
 */
public interface IUserDao {

    public void add(User user);

    public void delete(int id);


    public void update(User user);


    //    @Select("SELECT * FROM t_user WHERE id = #{id}")
    public User load(int id);

    public List<User> list();

    public List<User> loadUserTeacher();

    public List<User> loadUserGroup();


    public List<User> findUser(Map<String, Object> params);


    public User loadUser(String username);
}
